package com.aiti.lulian.mapper.gxmh;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.industry.SysUserInfoDto;
import com.aiti.lulian.gxmh.dto.GxmhAppealQueryParamDto;
import com.aiti.lulian.gxmh.dto.SysUserDto;
import com.aiti.lulian.gxmh.entity.GxmhAppeal;
import com.aiti.lulian.gxmh.vo.GxmhAppealVo;
import com.aiti.lulian.vo.SysDataVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GxmhAppealMapper extends SuperMapper<GxmhAppeal> {

    List<GxmhAppealVo> queryAppealList(IPage<GxmhAppealVo> page, @Param("dto") GxmhAppealQueryParamDto dto);

    String queryEnterpriseIdByUserId(@Param("userId") String userId);

    SysUserDto queryUserIdByUsername(@Param("username") String username);

    Integer queryCardountByUserId(@Param("userId") String userId);

    Integer queryZFCountByEnterpriseId(@Param("enterpriseId") String enterpriseId);

    void updateAppeal(@Param("dto") GxmhAppeal dto, @Param("loginUserId") String loginUserId);

    void removeAppreal(@Param("baseIdList")List<String> baseIdList);

}
